package com.rbac.api.controller.response;

import com.rbac.api.controller.enums.HintMessageEunm;

public class Response {
    public Response() {
    }

    public Response(HintMessageEunm hint) {
        super();
        this.code = hint.getId();
        this.message = hint.getI18nMsg(null);
    }

    public Response(HintMessageEunm hint, Object data) {
        super();
        this.code = hint.getId();
        this.message = hint.getI18nMsg(null);
        this.data = data;
    }

    public Response(long code, String message) {
        super();
        this.code = code;
        this.message = message;
    }


    public Response(Object data, long code, String message) {
        this.data = data;
        this.code = code;
        this.message = message;
    }

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    private long code;

    private String message;

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
